package com.example.bootcurriculumproject.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.example.bootcurriculumproject.util.NumUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    //用户名
    //@TableId
    private String username;
    //密码
    private String password;
    //登录状态 (0:未登录，-1：未注册，1：已登录)
    private int status;
    //地址
    private String address;
    //电话号码11位
    private int phone;
    //头像
    private String image;
    //外键编码，系统自动生成--传入4
    @TableField(fill = FieldFill.INSERT)
    private String uid;
    //昵称
    private String nickname;
}
